package com.hnas.ecard.orm;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hnas.core.orm.BaseEntity;

/**
 * 账户与电子卡关系表
 * 
 * @author
 *
 */
@Entity
@Table(name = "tbl_acc_e_card")
public class AccECard extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "id", length=32)
	private String id; // 主键id

	@Column(name = "acc_id", length=32)
	private String accId; // 账户id

	@Column(name = "card_no", unique=true,nullable=false, length=25)
	private String cardNo; // 卡号

	@Column(name = "face_value")
	private Long faceValue; // 卡面值

	@Column(name = "expiry_date", length=10)
	private String expiryDate; // 卡有效期 格式yyyyMMdd

	@Column(name = "card_mark", length=1)
	private String cardMark; // 卡标记 1、电子卡 2、实体卡

	@Column(name = "acc_no", length=50)
	private String accNo; // 卡账户
	
	@Column(name = "status", length=2)
	private String status; // 卡状态 1、正常 2、转增中 3、退卡中 4、已退卡

	private String remark; // 备注

	public AccECard() {
		super();
	}

	public AccECard(String id, String accId, String cardNo, Long faceValue, String expiryDate, String cardMark,
			String accNo, String status, String remark) {
		super();
		this.id = id;
		this.accId = accId;
		this.cardNo = cardNo;
		this.faceValue = faceValue;
		this.expiryDate = expiryDate;
		this.cardMark = cardMark;
		this.accNo = accNo;
		this.status = status;
		this.remark = remark;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccId() {
		return accId;
	}

	public void setAccId(String accId) {
		this.accId = accId;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public Long getFaceValue() {
		return faceValue;
	}

	public void setFaceValue(Long faceValue) {
		this.faceValue = faceValue;
	}

	public String getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(String expiryDate) {
		this.expiryDate = expiryDate;
	}

	public String getCardMark() {
		return cardMark;
	}

	public void setCardMark(String cardMark) {
		this.cardMark = cardMark;
	}

	public String getAccNo() {
		return accNo;
	}

	public void setAccNo(String accNo) {
		this.accNo = accNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
